//
//  UIView+LBEmptyData.h
//  jslj
//
//  Created by 杨庆人 on 2017/9/28.
//  Copyright © 2017年 广东联结电子商务有限公司. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "LBEmptyDataSystemView.h"
#import "LBEmptyDataBusinessView.h"
#import "UIScrollView+LBEmptyDataSet.h"

@interface UIView (LBEmptyData)<DZNEmptyDataSetSource,DZNEmptyDataSetDelegate>


/**
 需要登录

 @param loginBlock 重新登录block
 */
- (void)lb_setEmptyDataWithNeedLogin:(LBEmptyDataBlock)loginBlock;

/**
 没有数据
 */
- (void)lb_setEmptyNoData:(NSString *)title;
- (void)lb_setEmptyNoData:(NSString *)title detail:(NSString *)detail;
- (void)lb_setEmptyNoData:(NSString *)title reloadBlock:(LBEmptyDataBlock)block;
- (void)lb_setEmptyNoData:(NSString *)title detail:(NSString *)detail reloadBlock:(LBEmptyDataBlock)block;
- (void)lb_setEmptyNoData:(NSString *)title detail:(NSString *)detail customBtnName:(NSString *)buttonName block:(LBEmptyDataBlock)block;

/**
 没有数据，不附带图
 */
- (void)lb_setEmptyDataNoImageWithTitle:(NSString *)title;
- (void)lb_setEmptyDataNoImageWithTitle:(NSString *)title detail:(NSString *)detail;

/**
 设置title、detail颜色
 */
- (void)lb_setEmptyThemeColor:(UIColor *)color;

/**
 移除
 */
- (void)lb_removeEmptyData;


/**
 业务空白页
 @param image   图标
 @param title
 @param detail
 @param button
 @param block   buttonArray对应的index
 */
- (void)lb_setEmptyDataWithBsImage:(UIImage *)image title:(NSString *)title detail:(NSString *)detail button:(NSArray <NSString *>*)button block:(LBEmptyDataIndexBlock)block;


/**
 自定义view

 @param customView
 */
- (void)lb_setCustomView:(__kindof UIView *)customView;

@end

